package com.xuecheng.learning.exception;

import lombok.Getter;

/**
 * @author 勾新杰
 * @version 1.0
 * @description: 学习模块错误
 * @date 2025/2/26 16:05
 */
@Getter
public enum LearningError {

    COURSE_HAS_BEEN_CHOSEN("该课程您已选了"),

    HAS_A_SAME_CHOOSE_COURSE_NOT_PAY("您有一笔相同的选课信息还没有支付"),

    ILLEGAL_ARGUMENT("非法参数"),

    COURSE_TEACH_PLAN_CHARGE("该章节为收费章节，请先购买课程"),

    COURSE_CHARGE_HAS_BEEN_EXPIRED("您的选课已过期需要申请续期或重新支付");

    private final String errMsg;

    LearningError(String errMsg){
        this.errMsg = errMsg;
    }
}
